﻿@using GdHotel.Data
@model SideBlock
<li>
    @{
        var type = Model != null && !String.IsNullOrEmpty(Model.Title)
                       ? Model.Title.Length > 14 ? "down" : ""
                       : "";
    }
	<div class="promo_item @type">
		<div class="shadow">
			<div class="photo_wrap"><a href="@Model.Link"><img src="@Url.Content(Model.PicturePath)" width="284px" height="144px" alt="" /></a></div>
		</div>
		<div class="plashka shadow">
			<h3><a href="@Model.Link" class="corbel">@Model.Title</a></h3>
		</div>
	</div>
</li>